package lt.ntec.sudokusolver;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TableLayout;
import android.widget.TableRow;

public class SudokuSolver extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.main);
        TableLayout layout = new TableLayout(getApplicationContext());
        layout.setColumnStretchable(0, true);
        layout.setColumnStretchable(1, true);
        layout.setColumnStretchable(2, true);
        for(int i = 0; i < 3; i++ ){
        	TableRow row = new TableRow(layout.getContext());
        	for(int j = 0; j < 3; j++){
        		UISmallPiece piece = new UISmallPiece(row.getContext());
        		row.addView(piece);
        	}
        	layout.addView(row);
        }
        setContentView(layout);
    }
}